home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=central.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: central.SH,v 3.0 86/09/26 10:14:01 pb Rel $"
- #
- #################################################################
- #################################################################
- #################################################################
- ##########
- ########## the t.central shell script generator file
- ########## has all the constants, the rest of the stuff is added on
- ########## the command line
- ##########
- #################################################################
- #################################################################
- #################################################################
-
- directory $datadir
-
- output forward text
- !GROK!THIS!
- then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
- else
- echo " " Failed to create $outputfile.$$
- fi
-